from django.contrib.auth.models import User
from django.shortcuts import render
from apps.actors.models import Actor
from apps.moves.models import Film


# Create your views here.

def home(request):
    return render(request, 'home/home.html')


def dashboard(request):
    return render(
        request,
        'home/dashboard.html',
        {
            'user_count': User.objects.count(),
            'actor_count': Actor.objects.count(),
            'movie_count': Film.objects.count()
        }

    )
